package UI;

import java.awt.event.MouseEvent;
import java.awt.event.MouseMotionAdapter;

public class Main_MouseMotionAdaptor extends MouseMotionAdapter {
	private Main frame;

	public Main_MouseMotionAdaptor(Main main) {
		this.frame = main;
	}

	public void mouseMove(MouseEvent e) {
	}

	public void mouseDragged(MouseEvent e) {
		frame.setLocation(e.getLocationOnScreen().x
				- frame.mouseClickedLocation.x, e.getLocationOnScreen().y
				- frame.mouseClickedLocation.y);
	}
}